﻿app.controller("widget-add-dialog", ["$scope", "$modalInstance", "widget",
    function ($scope, $modalInstance, widget) {
        $scope.widget = widget;

        $scope.ok = function() {
            $modalInstance.close($scope.widget);
        };
        $scope.cancel = function() {
            $modalInstance.dismiss("cancel");
        };
    }
]);